package com.yang.entity.result;

import java.util.List;

/**
 * 博文
 * @author yang
 *
 */
public class Blog {
	private int id;
	private String title; //标题
	private Author author;//作者
	private Author editor;//编辑
	private String content;//内容
	private List<Comment> comments;
	public int getId() {
		return id;
	}
	public Blog(){};
	public Blog(int id,String title){
		this.id = id;
		this.title = title;
		System.out.println("---constructor init---");
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Author getAuthor() {
		return author;
	}
	public void setAuthor(Author author) {
		this.author = author;
	}
	public Author getEditor() {
		return editor;
	}
	public void setEditor(Author editor) {
		this.editor = editor;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public List<Comment> getComments() {
		return comments;
	}
	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}
}
